﻿@model iBizObjList
@{
    ViewBag.Title = "Index";
}
<div class="catalog-title">@Model.ObjName</div>
@Html.ActionLink("New", "Edit")
<table width="100%">
    <tr>
        @foreach (var item in Model.EntitySet.ElementType.Members.Where(v => v is System.Data.Metadata.Edm.EdmProperty))
        {
            <th>@item.Name
            </th>
        }
    </tr>
    @{var param = Expression.Parameter(typeof(iBizObjList));}
    @foreach (var row in Model.Data)
    {
        <tr>
            @foreach (var item in Model.EntitySet.ElementType.Members.Where((v => v is System.Data.Metadata.Edm.EdmProperty)))
            {
                <th>@Html.DisplayFor(Expression.Lambda<Func<iBizObjList, object>>(
        Expression.Property(Expression.Constant(row), item.Name), param))
                </th>
            }
        </tr>
    }
</table>
